<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<div class="modal-dialog x-modal-dialog" style="width: 650px;">

	<div class="modal-content">

		<div class="modal-header x-breadcrumb no-bottom-border clearfix">

			<h2>
				<i class="glyphicon glyphicon-fire" title="编辑信息"></i>&nbsp;&nbsp;<span>编辑信息&nbsp;</span>
			</h2>

			<button type="button" class="close" data-dismiss="modal">&times;</button>

		</div>

		<form id="info-edit-form" class="form-horizontal" method="GET"
			action="${ctx.host}/movements/${movement.id}/movement-edit"
			data-validate="true">

			<div class="modal-body">

				<div class="form-horizontal bottom-margin-20">

					<div class="form-group x-form-group">
						<label class="col-xs-4 control-label">组数：</label>
						<div class="pull-left col-xs-4">
							<input name="movementGroup" class="form-control" type="number"
								value="${empty movement.groupAmount ? '0': movement.groupAmount}" data-validate="digits:true" >
						</div>
					</div>

					<div class="form-group x-form-group">
						<label class="col-xs-4 control-label">每组次数：</label>
						<div class="pull-left col-xs-4">
							<input name="movementNumber" class="form-control" type="number"
								value="${ empty movement.movementNumber ? '0' : movement.movementNumber}" data-validate="digits:true">
						</div>
					</div>
					<div class="form-group x-form-group">
						<label class="col-xs-4 control-label">最大重量：</label>
						<div class="pull-left col-xs-4">
							<input name="movementWeight" class="form-control" 
								value="${movement.maxWeight}" data-validate="digits:true" >
						</div>
					</div>
					<div class="form-group x-form-group">
						<label class="col-xs-4 control-label">计时：</label>
						<div class="pull-left col-xs-4">
							<input name="movementTime" class="form-control" 
								value="${movement.time}" data-validate="digits:true" >
						</div>
					</div>


				</div>

			</div>
			<div class="modal-footer">
				<button type="submit"
					class="btn btn-success btn-shadow btn-shadow-success x-btn">确定</button>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<button type="button"
					class="btn btn-default btn-shadow btn-shadow-default x-btn"
					data-dismiss="modal">取消</button>
			</div>

		</form>

	</div>
</div>
